﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="ThongTin.aspx.cs" Inherits="SES.CMS.ThongTin" Title="Thông tin cá nhân" %>

<%@ Register Src="~/Module/ucSanPhamBanChay.ascx" TagName="ucSanBanChay" TagPrefix="uc5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ul class="append_info">
        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
            padding-right: 5px;"></span>Tên đăng nhập </span><span class="cl_sp">:</span> <span
                class="info_result">
                <asp:Label ID="lblDN" runat="server"></asp:Label></span> </li>
        <!--END DIV gender-->
        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
            padding-right: 5px;"></span>Họ tên </span><span class="cl_sp">:</span> <span class="info_result">
                <asp:Label ID="lbHT" runat="server"></asp:Label></span>
            <asp:TextBox ID="txtHT" runat="server" CssClass="ip_info_result" Visible="false"> </asp:TextBox>
        </li>
        <!--END DIV gender-->
        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
            padding-right: 5px;"></span>Email </span><span class="cl_sp">:</span> <span class="info_result">
                <asp:Label ID="lbEmail" runat="server" CssClass="txt"></asp:Label></span>
                <asp:TextBox ID="txtEmail" runat="server" CssClass="ip_info_result" Visible="false"></asp:TextBox>
        </li>
        <!--END DIV startdate-->
        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
            padding-right: 5px;"></span>Số điện thoại </span><span class="cl_sp">:</span> <span
                class="info_result">
                <asp:Label ID="lbDT" runat="server"></asp:Label>
            </span>
            <asp:TextBox ID="txtDT" runat="server" CssClass="ip_info_result" Visible="false"></asp:TextBox>
        </li>
                <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
            padding-right: 5px;"></span>Di động </span><span class="cl_sp">:</span> <span
                class="info_result">
                <asp:Label ID="lbMobile" runat="server"></asp:Label>
            </span>
            <asp:TextBox ID="txtMobile" runat="server" CssClass="ip_info_result" Visible="false"></asp:TextBox>
        </li>
        <!--END DIV gender-->
        <li class="info_detail sp_info_detai_change"><span class="sp_info_detai"><span style="font-size: 9px;
            padding-right: 5px;"></span>Địa chỉ </span><span class="cl_sp">:</span> <span class="info_result">
                <asp:Label ID="lbDC" Text="" runat="server"></asp:Label></span>
            <asp:TextBox ID="txtDC" runat="server" CssClass="ip_info_result" Visible="false"></asp:TextBox>
        </li>
        <li class="info_detail sp_info_detai_change" style="border: none;">
            <asp:Button ID="btnCapNhat" Text="Sửa thông tin" OnClick="btnCapNhat_Click" runat="server" CssClass="button" /><span
                class="sp_info_detai"><span style="font-size: 9px; padding-right: 5px;"></span></span><span
                    class="cl_sp"></span> <span class="info_result"></span>
                     <asp:Button ID="btnUpdate" Text="Cập nhật" OnClick="btnUpdate_Click" runat="server" CssClass="button"  Visible="false"/>
                    </li>
        <!--END DIV startdate-->
        <!--END DIV startdate-->
    </ul>
    <a href="/DoiMK.aspx" class="checkout_link" style="margin-left:25px;background:none;">Đổi mật khẩu</a><br />
    <a href="/DonDatHang.aspx" class="checkout_link" style="margin-left:25px;">Xem đơn đặt hàng</a>
    <div style="margin-top: 40px;">
        <hr />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div class="SP">
                    Sản phẩm bán chạy<img src="/images/temp.jpg" align="top" width="575px" alt="tem" />
                    <asp:Repeater ID="rpt" runat="server" OnItemCommand="rpt_ItemCommand">
                        <ItemTemplate>
                            <div class="product-box">
                                <div class="product-img">
                                    <a href="<%#"/SanPhamChiTiet/"+Eval("SanPhamID")+"/"+FriendlyUrl(Eval("TenSanPham").ToString())%>">
                                        <img src="/Media/<%#Eval("HinhAnh")%>" /></a>
                                    <asp:Button CommandArgument='<%#Eval("SanPhamID")%>' runat="server" ID="btDatMua"
                                        Text="ĐẶT MUA" Width="90px" BorderWidth="0px" CssClass="btn" Height="25px" BackColor="#009345" />
                                </div>
                                <div class="product-detail">
                                    <div style="float: left; width: 120px; height: 95px;">
                                        <a href="<%#"/SanPhamChiTiet/"+Eval("SanPhamID")+"/"+FriendlyUrl(Eval("TenSanPham").ToString())%>">
                                            <%#Eval("TenSanPham")%></a>
                                        <div class="dMota">
                                            <%#Eval("Mota")%></div>
                                    </div>
                                    <div style="float: left; color: #c20b47; font-size: 12px; text-transform: uppercase">
                                        Giá:
                                        <%#(bool)(Int64.Parse(Eval("DonGia").ToString())==0)?"Liên hệ":Eval("DonGia","{0:0,0} VNĐ")%>
                                    </div>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:Label runat="server" Text="" ID="lbThongbao"></asp:Label>
                </div>
                <div style="width: 100%; float: left; margin-top: 10px;">
                    <div style="float: left;">
                        <asp:ImageButton ID="cmdPrev" Visible="false" OnClick="cmdPrev_Click" runat="server"
                            ImageUrl="~/images/prevpage.png" /></div>
                    <div style="float: right;">
                        <asp:ImageButton ID="cmdNext" Visible="false" OnClick="cmdNext_Click" runat="server"
                            ImageUrl="~/images/nextpage.png" /></div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
